package com.wjl.picture.picture.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjl.picture.picture.model.entity.SpaceUser;
import com.wjl.picture.picture.model.request.SpaceUserAddRequest;
import com.wjl.picture.picture.model.request.SpaceUserQueryRequest;
import com.wjl.picture.picture.model.vo.SpaceUserVO;
import com.wjl.picture.user.model.vo.UserVO;

import java.util.List;


/**
* @author jdd
* @description 针对表【space_user(空间用户关联)】的数据库操作Service
* @createDate 2025-01-03 10:45:30
*/
public interface SpaceUserService extends IService<SpaceUser> {

    long addSpaceUser(SpaceUserAddRequest spaceUserAddRequest);


    void validSpaceUser(SpaceUser spaceUser, boolean add);

    LambdaQueryWrapper<SpaceUser> getLambdaQueryWrapper(SpaceUserQueryRequest spaceUserQueryRequest);

    SpaceUserVO getSpaceUserVO(SpaceUser spaceUser);

    List<SpaceUserVO> getSpaceUserVOList(List<SpaceUser> spaceUserList);

    List<UserVO> getCanAddUsers(Long spaceId);
}
